<html>
<head>
<script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="core.js"></script>
<script>
function selectDate(){
   new yxCalendar({
            date: $('#myDate').html(),
            callback:function(date){
                $('#myDate').html(date)
                $("input[name=time]").val(date);
                alert(date)
            }
        });
    }
</script>
<style type="text/css">
    .list{border-bottom:1px solid #ddd;  height: 24px;margin: 20px;}
    .title{float:left;width:80px;}
    .word{float:left;width:180px;}
</style>
</head>
<body>

    <div class="list">
        <div class="title">出生日期：</div>
        <div class="word">
            <div id="myDate" onclick="selectDate()">点击这里</div>
        </div>
       
    </div>
     <p><input type="text" name="time"></p>
</body>

</html>